<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://opengraphprotocol.org/schema/" xmlns:fb="http://www.facebook.com/2008/fbml"
 		xml:lang="en" lang="en">
  <head>
    <?php include_http_metas() ?>
    <?php include_metas() ?>
    <?php include_title() ?>
    <link rel="shortcut icon" href="/favicon.ico" />
    <?php include_stylesheets() ?>
    <?php include_javascripts() ?>

	<?php include_slot('fb_meta') ?>
	<?php include_slot('custom_css') ?>

  </head>
  <body>
  	<div id="fb-root"></div>
	<script>
	window.fbAsyncInit = function() {
	FB.init({
	appId : '136003349748069',
	status : true, // check login status
	cookie : true, // enable cookies to allow the server to access the session
	xfbml : true // parse XFBML
	});
	};

	(function() {
	var e = document.createElement('script');
	e.src = document.location.protocol + '//connect.facebook.net/es_LA/all.js';
	e.async = true;
	document.getElementById('fb-root').appendChild(e);
	}());
	</script>
  	<?php if($sf_user->isAuthenticated()):?>
		<?php include_partial('global/user_header') ?>
	<?php else:?>
		<?php include_partial('global/header') ?>
	<?php endif;?>
	<div id="wrapper">
	    <div id="store">
	    	<?php echo $sf_content ?>
	    </div>
	    <!-- end #page -->
	</div>
	<div id="footer">
		<?php include_partial('global/footer') ?>
	</div>
  </body>
</html>
